﻿using SwaggerJwtAuthenticationCenter.Models;
using SwaggerJwtAuthenticationCenter.Models.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SwaggerJwtAuthenticationCenter.DbHelper.Base
{
    public interface ILoginService:IBaseRepository
    {
        /// <summary>
        /// 创造模型
        /// </summary>
        /// <param name="dirPath">保存文件夹路径</param>
        /// <param name="nameSpace">命名空间</param>
        /// <param name="connID">连接串ID</param>
        /// <returns></returns>
        public ResponseMsg<string> CreateModelFile(string dirPath,string nameSpace,string connID=null);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="loginModel"></param>
        /// <returns></returns>
        public ResponseMsg<LoginResultModel> Login(LoginModel loginModel);

        /// <summary>
        /// 新增用户
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public ResponseMsg<string> AddUser(UserApplication user);
    }
}
